<%@page import="fun.wlfj.vo.VoteTask"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

    <title>投票系统-管理员</title>
  </head>
  <body>
<div class="container pl-2 pr-2 pt-2">
    <div class="card text-center">
      <div class="card-body">
  <table class="table table-striped">
  <thead>
  <%
  List<VoteTask> list = (List<VoteTask>)request.getAttribute("TaskList");
  %>
    <tr>
      <th scope="col">姓名</th>
      <th scope="col">同意</th>
      <th scope="col">弃权</th>
      <th scope="col">反对</th>
    </tr>
  </thead>
  <tbody>
  <%
  for(VoteTask t : list){
	  
  %>
    <tr>
      <td><%=t.getName() %></td>
      <td><%=t.getS1() %></td>
      <td><%=t.getS2() %></td>
      <td><%=t.getS3() %></td>
    </tr>
    
    <%
  }
    %>
  </tbody>
</table>
      </div>
    </div>
</div>
    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
  </body>
</html>
